package com.mostromas.ess.inventory.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mostromas.ess.entities.StockIn;
import com.mostromas.ess.inventory.mapper.StockInMapper;
import com.mostromas.ess.inventory.req.StockInREQ;
import com.mostromas.ess.inventory.service.IStockInService;
import com.mostromas.ess.util.base.Result;
import org.springframework.stereotype.Service;

@Service
public class StockInServiceImpl extends ServiceImpl<StockInMapper, StockIn> implements IStockInService {

    @Override
    public Result queryPage(StockInREQ req) {
        System.out.println(req.getStartDate());
        IPage<StockIn> data = baseMapper.findStockInList(req.getPage(), req);
        return Result.ok(data);
    }
}
